<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" type="text/css" href="../../static/css/jpetstore.css"/>
    <meta charset="UTF-8">
    <title>All Goods</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>

<div th:replace="common/left">

</div>

<div id="BackLink">
    <a th:href = "'/admin_catalog/admin_viewItem?itemId='+${item.itemId}">Return to <label th:text="${product.productId}" ></label></a>
</div>

<div id="bCatalog">
    <form action="/admin_catalog/admin_updateItem" th:object="${item}">

        <h3>Item Information</h3>

        <table id="itemform">
            <tr>
                <td>itemID:</td>
                <td ><input type="text" readonly name="itemId" th:value="${item.itemId}"/></td>
            </tr>
            <tr>
                <td>productID:</td>
                <td><input type="text" readonly name="ProductId" th:value="${item.productId}"/></td>
            </tr>
            <tr>
                <td>listPrice:</td>
                <td><input type="text" name="newListPrice" th:value="${item.listPrice}"/></td>
            </tr>
            <tr>
                <td>unitCost:</td>
                <td><input type="text" name="newUnitCost" th:value="${item.unitCost}"/></td>
            </tr>
            <tr>
                <td>quantity:</td>
                <td><input type="text" name="newQuantity" th:value="${item.quantity}"/></td>
            </tr>
            <tr>
                <td>supplierID:</td>
                <td><input type="text" name="newSupplierId" th:value="${item.supplierId}"/></td>
            </tr>
            <tr>
                <td>gender:</td>
                <td><input type="text" name="newAttribute1" th:value="${item.attribute1}"/></td>
            </tr>
        </table>

        <input type="submit" name="editItem" value="Save"/>

    </form>

</div>

</body>
</html>